﻿Imports System.Windows.Forms

Public Class frmSaveDefaults

    Public Enum enumResult
        Graph
        Series
        Cancel
    End Enum

    Public SaveAction As enumResult = enumResult.Cancel

    Private Sub btnAppend_Click(sender As Object, e As System.EventArgs) Handles btnSeries.Click, btnCancel.Click, btnGraph.Click
        If sender Is btnGraph Then
            SaveAction = enumResult.Graph
        ElseIf sender Is btnCancel Then
            SaveAction = enumResult.Cancel
        ElseIf sender Is btnSeries Then
            SaveAction = enumResult.Series
        End If
        Close()
    End Sub
End Class
